package leecode

type MyHashMap struct {
	hashMap map[int]int
}

func Constructor706() MyHashMap {
	hashMap := make(map[int]int)
	return MyHashMap{hashMap: hashMap}
}

func (this *MyHashMap) Put(key int, value int) {
	this.hashMap[key] = value
}

func (this *MyHashMap) Get(key int) int {
	if value, ok := this.hashMap[key]; ok {
		return value
	}
	return -1
}

func (this *MyHashMap) Remove(key int) {
	delete(this.hashMap, key)
}
